package cn.crism.ssc.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

/**
 * @Author: Crism
 * @Description: 学生信息表
 * @Data: 上午10:21 17/10/28
 */
@Entity
@Data
public class Student {
    @Id
    @Column(name = "stu_id", length = 50, unique = true, nullable = false)
    private String stuId;
    @Column(name = "stu_name", nullable = false, length = 32)
    private String stuName;
    @Column(name = "stu_sex", nullable = false, length = 4)
    private String stuSex;
    private Date stuBirthdate;
    private String stuPassword;
    private String stuEmail;
    private String stuTel;
    private Boolean effect;
    private String majorId;
}
